@import "~assets/css/global.less";
@import "~assets/css/custom.less";
@import "~assets/css/color-used.less";

/* ---------- color ---------- */
@theme: #001529;
@theme-opacity: rgb(0, 21, 41, .6);
@blue: #1890ff;
@lightblue: #C4ECFC;
@green: #52c41a;
@yellow: #faad14;
@red: hsl(357, 90%, 55%);
@hover-red: hsl(357, 91%, 70%);
@disabled: rgba(0, 0, 0, .25);
@noshadow: 0 0px 0px rgba(0, 0, 0, .15);
@shadow: 4px 4px 16px 4px rgba(24, 144, 255, .35);

/* ---------- class ---------- */
.Flex {
  display: -webkit-box;
  display: flex;

  &.Flex-wrap {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  &.Flex-col {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
  }

  &.Flex-center {
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
  }

  &.Flex-align-item-stretch {
    -webkit-box-align: stretch;
    align-items: stretch;
  }

  &.Flex-align-item-center {
    -webkit-box-align: center;
    align-items: center;
  }

  &.Flex-align-center {
    -webkit-box-align: center;
    align-items: center;
  }

  &.Flex-align-end {
    -webkit-box-align: end;
    align-items: flex-end;
  }

  &.Flex-justify-start {
    -webkit-box-pack: start;
    justify-content: flex-start;
  }

  &.Flex-justify-end {
    -webkit-box-pack: end;
    justify-content: flex-end;
  }

  &.Flex-justify-spacearound {
    justify-content: space-around;
  }

  &.Flex-justify-spacebetween {
    -webkit-box-pack: justify;
    justify-content: space-between;
  }
}

.Flex-1 {
  -webkit-box-flex: 1;
  flex: 1;
}

.Flex-unset {
  -webkit-box-flex: unset;
  flex: unset;
}

.Align-self-flex-end {
  align-self: flex-end;
}

.fullSize {
  width: 100%;
  height: 100%;
}

.textOverflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.textOverflow-line2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.transformCenter {
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.OverflowYAuto {
  overflow-y: auto;
  overflow-x: hidden;
}


/* ---------- function ---------- */
.textColorLinear (@direction, @start, @end) {
  background-image: -webkit-linear-gradient(@direction, @start, @end);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.BackgroundLinear (@direction, @start, @end) {
  background-image: -webkit-linear-gradient(@direction, @start, @end);
}

.BackgroundLinear2 (@direction, @start, @middle, @end) {
  background-image: -webkit-linear-gradient(@direction, @start, @middle, @end);
}

.Background (@url) {
  background-color: transparent;
  background-image: url('@{url}');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- 自定义组件样式 ---------- */

/* 滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: @theme-opacity;
}

::-webkit-scrollbar {
  width: thin;
  width: 3px;
  height: normal;
  height: 5px;
  min-width: 3px;
  min-height: 5px;
}

::-webkit-scrollbar-thumb {
  width: thin;
  height: normal;
  border-radius: 10px;
  opacity: .6;
  background: @theme-opacity;
}

::-webkit-scrollbar-track {
  background: transparent;
}